package com.example.blog_system_ssm.mapper;

import com.example.blog_system_ssm.model.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {
    public List<Blog> selectAllBlog();

    public Blog selectBlogById(int blogId);

    public int deleteBlogById(int blogId);

    public List<Blog> findBlogByUserId(int userId);

    public List<Blog> findBlogByUserIdAndBlogId(int userId,int blogId);

    public int insertBlog(Blog blog);



}
